<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<test></test>
		<div id="a">
			<baidu></baidu>
			<a2></a2>
		</div>
		<script>
			Vue.component("test",{
				template:alert("全局标签")
			})
			new Vue({
				el:"#a",
				components:{
					a2:{template:
							alert("局部组件")
					},
					baidu:{
						template:"<a href='http://www.baidu.com'>百度</a>"
					}
				}
			})
		</script>
	</body>
</html>
